home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1989 / Jul 89 / W0043-fShown Schizophreni-Jul89 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.6 KB  |  40 lines  |  [TEXT/GEOL]

  1. Item    0595986                         10-July-89        18:12
  2.  
  3. From:   D2215                           Dac SW, Wilma Blair, PRT
  4.  
  5. To:     MACAPP.TEST                     MacApp SQA Team
  6.  
  7. cc:     MACAPP.TECH$                    MACAPP Tech
  8.  
  9. Sub:    fShown Schizophrenia
  10.  
  11. I have found that fShown works differently for windows and views.  If a window
  12. is closed but not freed, fShown is set to false.  A subView in that same closed
  13. window will still have fShown set to true.  fShown for a view seems to mean
  14. "can this view be show" and has nothing to do with whether it is in an open
  15. window or not. fShown for a Window seems to mean "is this window open (but not
  16. necessarily visible).
  17.  
  18. This is ok as I can use fShown to test whether a window is open or closed.  I
  19. can use fIsActive to tell whether it is active and IsShown to tell whether any
  20. part of it is visible.
  21.  
  22. This may be a little confusing to a new user of MacApp.  Maybe an additional
  23. field should be added to TWindow called fWindowOpen.  fShown would then
  24. function just like for a view and control whether the window can ever be shown
  25. (although fShown should be renamed to fCanBeShown to be more clear).
  26.  
  27. If no new fields can to be added to MacApp 2.0 at this late date, I would at
  28. least suggest that the IWindow procedure be modified to set fShown to false.
  29. When a new window is created by procedure, fShown is set true (even though it
  30. has never been opened).  After opening and closing it, it is set to false as it
  31. should be.
  32.  
  33. Also, a paragraph might be added to the docs on what the fields really mean and
  34. how an fShown for a TView means something very diffent than an fShown for a
  35. TWindow.
  36.  
  37. Regards, Les Caudle
  38.  
  39.  
  40.